/**
 * f-club.cn
 * Copyright (c) 2009-2012 All Rights Reserved.
 */
package com.mtoolkit.socket.transocder;

import java.io.IOException;

import com.mtoolkit.socket.SocketRequest;

/**
 * Socket request transcoder interface.
 * 
 * @author michael
 * @version $Id: SocketRequestTranscoder.java 70 2012-10-29 10:12:09Z xishizhang@gmail.com $
 */
public interface SocketRequestTranscoder {
	
	public byte[] sealRequest(SocketRequest request) throws IOException;
	
	public SocketRequest unsealRequest(byte[] bytes) throws ClassNotFoundException, IOException;
	
}
